package com.yike.user.service;

import com.yike.user.entity.PlatformRole;
import com.yike.user.param.PlatformRolePageParam;
import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;
import com.yike.user.param.PlatformRoleParam;
import com.yike.user.vo.PlatformRoleVo;

/**
 * 平台角色 服务类
 *
 * @author Sakura
 * @since 2024-10-29
 */
public interface PlatformRoleService extends BaseService<PlatformRole> {

    /**
     * 保存
     *
     * @param platformRoleParam
     * @return
     * @throws Exception
     */
    boolean savePlatformRole(PlatformRoleParam platformRoleParam) throws Exception;

    /**
     * 修改
     *
     * @param platformRoleParam
     * @return
     * @throws Exception
     */
    boolean updatePlatformRole(PlatformRoleParam platformRoleParam) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deletePlatformRole(Long id) throws Exception;

    PlatformRoleVo getPlatformRole(Long id) throws Exception;

    /**
     * 获取分页对象
     *
     * @param platformRolePageParam
     * @return
     * @throws Exception
     */
    Paging<PlatformRoleVo> getPlatformRolePageList(PlatformRolePageParam platformRolePageParam) throws Exception;

}
